#include "OverviewPage.h"

OverviewPage::OverviewPage(){
}

OverviewPage::~OverviewPage(){
	/*for (int i=0; i < fleets.size(); i++){
		delete &fleets[i];
	}*/
	fleets.clear();
}

void OverviewPage::addFleet(Fleet f){
	fleets.push_back(f);
}

void OverviewPage::toString(){
	unsigned int i;	
	for (i=0; i < fleets.size(); i++){
		
		Fleet f =fleets[i];
		f.toString();
		NF_UpdateTextLayers();
		for( int j = 0 ; j<180; j++)
			swiWaitForVBlank();
	
	}
	
}

vector<Fleet> OverviewPage::getFleets(){
	return fleets;
}
